package com.smec.moblie.util.imageuploader;

import org.litepal.crud.DataSupport;

import java.io.Serializable;

/**
 * 照片缓存
 */
public class FndResource extends DataSupport implements Serializable {
    private static final long serialVersionUID = 1L;
    private int id = 0;
    private String resourceId;
    private String fileName;
    private String contentType;
    private int isUpload = 0;//0:未上传   1：已上传

    public FndResource(String resourceId, String fileName, String contentType, int isUpload) {
        this.resourceId = resourceId;
        this.fileName = fileName;
        this.contentType = contentType;
        this.isUpload = isUpload;
    }

    public FndResource() {
        super();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIsUpload() {
        return isUpload;
    }

    public void setIsUpload(int isUpload) {
        this.isUpload = isUpload;
    }

    public String getResourceId() {
        return resourceId;
    }

    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }


    @Override
    public String toString() {
        return resourceId;
    }
}
